package com.yuanfeng.base.controller;


import com.yuanfeng.base.dto.DealerLevelInfoDTO;
import com.yuanfeng.commoms.util.ResponseResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName BaseDealerLevelInfoController
 * @Description  经销商等级
 * @Author cyp
 * @Date 2023-08-04 18:18:37
 * @Version 1.0
 **/
@RestController
@RequestMapping("base/dealerLevelInfo")
public class BaseDealerLevelInfoController extends BaseController {

    /**
     * 操作经销商等级
     * @param dealerLevelInfo
     * @return
     */
    @PostMapping("operateDealerLevel")
    public ResponseResult operateDealerLevel(@RequestBody DealerLevelInfoDTO dealerLevelInfo){
        return baseDealerLevelInfoService.operateDealerLevel(dealerLevelInfo);
    }
    /**
     * 查询经销商等级
     * @param dealerLevelInfo
     * @return
     */
    @PostMapping("queryDealerLevel")
    public ResponseResult queryDealerLevel(@RequestBody  DealerLevelInfoDTO dealerLevelInfo){
        return baseDealerLevelInfoService.queryDealerLevel(dealerLevelInfo);
    }
}
